layui.use(['layer','form'],function () {
    var layer = layui.layer
});

function analyze() {
    var data = {
        "contents":$("textarea[name='contents']").val()
    }
    //保存项目
    $.ajax({
        url:"/admin/project/analyzeContents",
        type:"POST",
        data:data,
        contentType:"application/x-www-form-urlencoded",
        success:function (result) {
            layer.msg(result.message);
            $("textarea[name='contents']").val("");
        },
        error:function () {
            layer.msg("系统错误！");
        }
    });
}